
UserBaseInfo = import(".dao.UserBaseInfo")

app:registClass("AvatarFactory","app.public.avatar.AvatarFactory")
app:registClass("Armature","app.public.avatar.Armature")
app:registClass("Wildcard","app.public.wildcard.Wildcard")

app.session:on("shared.Operation",function(msg)
    -- dump(msg, "Operation", 10)
    UD:apply(msg,true,false)
end)

app.session:on("action.S2C_Operations",function(msg)
    -- dump(msg, "S2C_Operations", 10)
    for i,operation in ipairs(msg.operations) do
    	UD:apply(operation,true,false)
    end
end)

app.session:on("pb_title.S2C_NewTitle",function(msg)
	UD:onGotNewTitle( msg )
end)

app.session:on("pb_supertitle.S2C_SpReward",function(msg)
	UD:onSpReward(msg.rewards, true)
end)
